To interpolate rates for a target price, set showInterpolatedPricing to True and targetInterpolatedPrice to the desired pricing points, as shown. Note that the target pricing set here corresponds to the adjusted points value.
The result will return data for the interpolated rates along with the normal rates. Interpolated rates are listed in the interpolatedRates field, while rateSet lists all rates in the results. In the data container, individual line results are listed under each rate. Each line result indicates whether the rate is interpolated in the interpolated field.
| Request |
Copy Code |
|---|---|
curl --location -g --request POST '{{protocol}}{{domain}}/rest/pricing/multisearch/{{userId}}' \ --header 'secret: {{token}}' \ --header 'companyid: {{companyId}}' \ --data-raw '{ "showInterpolatedPricing": true, "targetInterpolatedPrice": 3, }' | |
| Response |
Copy Code |
|---|---|
{
"dataEventId": "60774ad02209c4000191d6da-6863",
"baseSearch": {
"id": "60774ad02209c4000191d6d0",
},
"resultMap": [
{
"resultRates": {
"interpolatedRates": [
2.557,
2.561
],
"rateSet": [
2.25,
2.375,
2.557,
2.561
],
"monthlyPaymentMapByRate": {
"2.25": 1528.98,
"2.375": 1554.61,
"2.557": 1592.36,
"2.561": 1593.2
},
"data": {
"2.25": [
{
"dti": 0.735796,
"hti": 0.305796,
"mortgageType": "Conventional",
"loanPurpose": "Purchase",
"loanAmount": 400000,
"term": 30,
"dayLock": 30,
"baseRates": 2.25,
"adjustedRates": 2.25,
"adjustmentRates": 0,
"loanLimitLite": {},
"basePoints": 1.97,
"adjustedPoints": 1.972,
"adjustedPointsBorrowerPaid": 1.972,
"adjustmentPoints": 0.0020000000000000018,
"adjustmentPointsBorrowerPaid": 0.0020000000000000018,
"rawAdjustmentPoints": 0.0020000000000000018,
"rawAdjustmentPointsBorrowerPaid": 0.0020000000000000018,
"armIndexRate": 0,
"notRoundedAPR": 2.4,
"borrowerPaid": 7888,
"borrowerPaidDetails": [
{
"line": "",
"points": 1.972,
"amount": 7888.000000000001,
}
],
"interpolated": false,
"interpolationTarget": false,
},
"apr": 2.3999,
],
"2.375": [
{
"dti": 0.740922,
"hti": 0.310922,
"mortgageType": "Conventional",
"loanPurpose": "Purchase",
"loanAmount": 400000,
"term": 30,
"dayLock": 30,
"baseRates": 2.375,
"adjustedRates": 2.375,
"adjustmentRates": 0,
"basePoints": 1.165,
"adjustedPoints": 1.167,
"adjustedPointsBorrowerPaid": 1.167,
"adjustmentPoints": 0.0020000000000000018,
"adjustmentPointsBorrowerPaid": 0.0020000000000000018,
"rawAdjustmentPoints": 0.0020000000000000018,
"rawAdjustmentPointsBorrowerPaid": 0.0020000000000000018,
"armIndexRate": 0,
"notRoundedAPR": 2.464,
"borrowerPaid": 4668,
"lenderPaid": 4668,
"interpolated": false,
"interpolationTarget": false
],
"2.557": [
{
"dti": 0.7484719999999999,
"hti": 0.318472,
"mortgageType": "Conventional",
"loanPurpose": "Purchase",
"loanAmount": 400000,
"term": 30,
"dayLock": 30,
"baseRates": 2.557,
"adjustedRates": 2.557,
"adjustmentRates": 0,
"adjustedPoints": 0,
"adjustedPointsBorrowerPaid": 0,
"adjustmentPoints": 0,
"adjustmentPointsBorrowerPaid": 0,
"rawAdjustmentPoints": 0,
"rawAdjustmentPointsBorrowerPaid": 0,
"armIndexRate": 0,
"notRoundedAPR": 2.557,
"brokerPaidDetails": [],
"otherPaidDetails": [],
"hideDisqualified": false,
"disqualified": false,
"interpolated": true,
"interpolationTarget": true
],
"2.561": [
{
"dti": 0.74864,
"hti": 0.31864000000000003,
"mortgageType": "Conventional",
"loanPurpose": "Purchase",
"loanAmount": 400000,
"term": 30,
"dayLock": 30,
"baseRates": 2.561,
"adjustedRates": 2.561,
"adjustmentRates": 0,
"basePoints": 0,
"adjustedPoints": 0.012,
"adjustedPointsBorrowerPaid": 0.04200000000000001,
"adjustmentPoints": 0.0020000000000000018,
"adjustmentPointsBorrowerPaid": 0.01200000000000001,
"rawAdjustmentPoints": 0.0020000000000000018,
"rawAdjustmentPointsBorrowerPaid": 0.01200000000000001,
"armIndexRate": 0,
"notRoundedAPR": 2.562,
"borrowerPaid": 168,
"interpolated": true,
"interpolationTarget": true,
}
]
}
}
] | |